package com.learn.springcloud.zuulreverseproxyprovider.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Time : 2018/8/8 19:45
 * @Version : 1.0
 */
@RestController
public class HelloProvider {

    @RequestMapping(value = "/zuul/reverse/proxy/provider/test/{name}")
    public String test(@PathVariable String name){
        return "test, " + name;
    }

    @RequestMapping(value = "/zuul/reverse/proxy/provider/test1/{name}")
    public String test1(@PathVariable String name){
        return "test1, " + name;
    }
}
